<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<script src="/static/js/jquery-1.11.1.min.js"></script>
<style>
    dd.layui-this{
        background-color: #1D54C2 !important;
    }
</style>
<head th:include="common/head :: htmlhead">

<body class="layui-layout-body">
<div id="LAY_app">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header" style="background-color: #1D54C2;">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩" style="color: #fff">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" layadmin-event="refresh" title="刷新" style="color: #fff">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="note" style="color: #fff">
                        <i class="layui-icon layui-icon-note"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="fullscreen" style="color: #fff">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;">
                        <cite th:text="${session.username}" style="color: #fff"></cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a th:attr="lay-href=@{/modifypwd}">修改密码</a></dd>
                        <hr>
                        <dd style="text-align: center;"><a th:href="@{/logout}">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <!-- 侧边菜单 -->
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll" style="background-color: #fff;">
                <div class="layui-logo" style="background-color: #1D54C2 !important;">
                    <span style="color:#fff;font-weight:600;font-size: 18px">快件物流效率评价平台</span>
                </div>
                <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
                    <li onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" class="layui-nav-item" >
                        <a th:attr="lay-href=@{/overview}" lay-tips="主页" lay-direction="2">
                            <i class="layui-icon layui-icon-home" style="color:#000;"></i>
                            <cite>主页</cite>
                        </a>
                    </li>
                    <li class="layui-nav-item" >
                        <a href="javascript:;" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" lay-tips="网点评价" lay-direction="2">
                            <i class="layui-icon layui-icon-template" style="color:#000;"></i>
                            <cite>网点效率评价</cite>
                        </a>
                        <dl class="layui-nav-child" style="background-color: #fff !important;">
                            <dd><a th:attr="lay-href=@{/evaluate(type='orgList')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" onclick="click_color(this)">网点列表</a></dd>
                            <dd><a th:attr="lay-href=@{/evaluate(type='orgListCollected')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" onclick="click_color(this)">收藏网点</a></dd>
                            <dd><a th:attr="lay-href=@{/evaluate(type='zonghe')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" onclick="click_color(this)">网点综合评价</a></dd>
<!--                            <dd><a th:attr="lay-href=@{/evaluate(type='workLength')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" style="color:#000;" title="业务员每天派送的最后一单时间减去每天开始派送的时间平均值">业务员平均工作时长</a></dd>-->
<!--                            <dd><a th:attr="lay-href=@{/evaluate(type='yewuliang')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" style="color:#000;" title="网点单天完成的派签量">单日业务量</a></dd>-->
<!--                            <dd><a th:attr="lay-href=@{/evaluate(type='shixiao')}" onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" style="color:#000;" title="平均完成一单派件签收所需要的时间">业务员平均时效</a></dd>-->
                        </dl>
                    </li>
<!--                    <li onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" class="layui-nav-item">-->
<!--                        <a th:attr="lay-href=@{/importData}"  lay-tips="导入数据" lay-direction="2">-->
<!--                            <i class="layui-icon layui-icon-add-circle" style="color:#000;"></i>-->
<!--                            <cite>导入数据</cite>-->
<!--                        </a>-->
<!--                    </li>-->
                    <li onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" class="layui-nav-item" >
                        <a th:attr="lay-href=@{/log}" lay-tips="系统日志" lay-direction="2">
                            <i class="layui-icon layui-icon-chart" style="color:#000;"></i>
                            <cite>系统日志</cite>
                        </a>
                    </li>
                    <li onmousemove="change_on_color(this)" onmouseout="change_out_color(this)" class="layui-nav-item">
                        <a th:attr="lay-href=@{/modifypwd}"  lay-tips="修改密码" lay-direction="2">
                            <i class="layui-icon layui-icon-password" style="color:#000;"></i>
                            <cite>修改密码</cite>
                        </a>
                    </li>
                </ul>
            </div>
        </div>

        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs" style="display: none">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="ovewview.html" lay-attr="ovewview.html" class="layui-this" style="background-color: #fff !important;"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>


        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body" style="top: 50px">
<!--            <input id = "input" type="hidden" value = 1>-->
<!--            <div id="main" style="position: absolute; width: 100%;height:100%;margin-left:10%; margin-top:-1%;" ></div>-->
            <div class="layadmin-tabsbody-item layui-show">
                <iframe th:src="@{/overview}" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>

<script src="/static/layui/layui.js" charset="utf-8"></script>
<script>
    layui.config({
        base: '/static/lib/' //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use('index',function() {
        $ = layui.$;
        $('.layui-nav-item').click(function(){
            $(this).siblings('li').attr('class','layui-nav-item');
        })
    });

    function change_on_color(obj){
        obj.style.backgroundColor = "#e8edf8";
    }

    function change_out_color(obj){
        obj.style.backgroundColor = "#fff";
    }

    function click_color(obj){
        obj.style.backgroundColor = "#fff";
    }

</script>
</body>

</html>


